import request from '@/utils/request'

export const reqOrderList = (PageParams, username, phone, address) => request({
  url: '/order/orderlistByPage',
  method: 'post',
  data: {
    page: PageParams.page,
    pageSize: PageParams.pageSize,
    name: username,
    phone: phone,
    address: address
  }
})
export const reqUpdateStatus = (order) => request({
  url: '/order/update',
  method: 'post',
  data: order
})
export const reqDeleteOrder = (id) => request({
  url: `/order/delete/${id}`,
  method: 'get'
})
export const reqOrderFood = (id) => request({
  url: `/order/showfood/${id}`,
  method: 'get'
})
